home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.n
/
while.n
< prev
next >
Wrap
Text File
|
1995-07-25
|
2KB
|
67 lines
wwwwhhhhiiiilllleeee((((nnnn)))) TTTTccccllll (((( )))) wwwwhhhhiiiilllleeee((((nnnn))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
while - Execute script repeatedly as long as a condition is
met
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
wwwwhhhhiiiilllleeee _t_e_s_t _b_o_d_y
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The _w_h_i_l_e command evaluates _t_e_s_t as an expression (in the
same way that eeeexxxxpppprrrr evaluates its argument). The value of
the expression must a proper boolean value; if it is a true
value then _b_o_d_y is executed by passing it to the Tcl
interpreter. Once _b_o_d_y has been executed then _t_e_s_t is
evaluated again, and the process repeats until eventually
_t_e_s_t evaluates to a false boolean value. CCCCoooonnnnttttiiiinnnnuuuueeee commands
may be executed inside _b_o_d_y to terminate the current
iteration of the loop, and bbbbrrrreeeeaaaakkkk commands may be executed
inside _b_o_d_y to cause immediate termination of the wwwwhhhhiiiilllleeee
command. The wwwwhhhhiiiilllleeee command always returns an empty string.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
boolean value, loop, test, while
Page 1 (printed 7/17/95)